﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace EMS.system.IEntityAppService.MasterData.UnitMeasureService.UnitMeasureDTOs
{
    public class UnitMeasureDTO
    {
        /// <summary>
        /// 计量单元ID，对应数据库中的主键
        /// </summary>

        public int Id { get; set; }
        /// <summary>
        /// 单位编码
        /// </summary>
        public string UnitMeasureCode { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string UnitMeasureName { get; set; }
        /// <summary>
        /// 主单位
        /// </summary>
        public string? MainUnit { get; set; }

        /// <summary>
        /// 是否是主计量单位
        /// </summary>
        public bool IsPrimaryUnit { get; set; }

        /// <summary>
        /// 与单位转换比例
        /// </summary>
        public decimal? ConversionScale { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool State { get; set; }
    }
}
